package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 活动订阅对象 xhlj_topic_activity_collect
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_topic_activity_collect")
@Entity
@Table(name = "xhlj_topic_activity_collect")
@SailTable(comment = "活动订阅表", indexs = {
    @SailIndex(name = "idx_is_collect", type = IndexType.BTREE,
       columns = {"is_collect"}
    ),    @SailIndex(name = "idx_del_flag", type = IndexType.BTREE,
       columns = {"del_flag"}
    ),    @SailIndex(name = "idx_activity_id", type = IndexType.BTREE,
       columns = {"activity_id"}
    ),    @SailIndex(name = "idx_user_id", type = IndexType.BTREE,
       columns = {"create_by"}
    )}
)
public class XhljTopicActivityCollect implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_topicActivityCollect_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_topicActivityCollect_list";
    /**
     * 话题活动收藏id
     */
    @TableId(value = "topic_activity_collect_id", type = IdType.AUTO)
    @Id
    private Integer topicActivityCollectId;
    /**
     * 是否订阅（0=未订阅，1=已订阅）
     */
    @Column(name = "is_collect")
    @SailColumn(comment = "是否订阅（0=未订阅，1=已订阅）",type = "char(3)", defaultValue = "0")
    private String isCollect;
    /**
     * 展商id
     */
    @SailColumn(comment = "展商id",type = "int", defaultValue = "NULL")
    @Column(name = "enterprise_id")
    private Integer enterpriseId;
    /**
     * 话题id
     */
    @SailColumn(comment = "话题id",type = "int", defaultValue = "NULL")
    @Column(name = "topic_id")
    private Integer topicId;
    /**
     * 活动id
     */
    @SailColumn(comment = "活动id",type = "int", defaultValue = "NULL")
    @Column(name = "activity_id")
    private Integer activityId;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
    @SailColumn(comment = "创建人wx_user（西湖论剑用户）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标志
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
